package com.springboot.service;

import java.io.File;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.IOException;

import java.math.BigDecimal;

import java.text.SimpleDateFormat;

import java.util.HashMap;

import java.util.Map;

import java.util.ArrayList;

import java.util.Calendar;

import java.util.Collections;

import java.util.Date;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;

import org.apache.commons.logging.LogFactory;

import com.springboot.dao.AnnounceMapper;

import com.springboot.entity.Announce;

import com.springboot.entity.AnnounceExample;

import com.springboot.entity.*;
import com.springboot.dao.*;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;

import org.springframework.web.multipart.MultipartFile;

public interface AnnounceServiceImp {


    //定义方法addannounce接口,响应控制层添加公告请求

    public void addannounce(HttpServletRequest request, HttpSession session);


    //定义addannounceact接口

    public void addannounceact(HttpServletRequest request, HttpSession session, Announce announce, MultipartFile picfile) throws IOException; //定义addannounceactjson接口

    public void addannounceactjson(Announce announce) throws IOException;


    //定义announcemanage方法响应页面请求

    public void announcemanage(HttpServletRequest request, HttpSession session);


    // 定义 announceview方法

    public void announceview(HttpServletRequest request, HttpSession session);


    // 定义 updateannounce方法

    public void updateannounce(HttpServletRequest request, HttpSession session, int id);


    // 定义updateannounceact处理公告修改

    public void updateannounceact(HttpServletRequest request, Announce announce, HttpSession session, MultipartFile picfile) throws IOException; // 定义updateannounceactjson处理公告修改

    public void updateannounceactjson(Announce announce) throws IOException;


    // 定义deleteannounce,处理删除公告

    public void deleteannounce(HttpServletRequest request, HttpSession session, int id);


    // 定义searchannounce方法，处理搜索操作

    public void searchannounce(HttpServletRequest request, HttpSession session, String search);


    // 定义searchannouncejson方法，处理搜索操作

    public Map searchannouncejson(String search);


    // 定义AnnouncepinglunMapper

    public void announcedetails(HttpServletRequest request, HttpSession session, int id);


    // 定义Announce详情方法

    public Map announcedetailsjson(int id);


}

